package com.ethink.platform.controller.system;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import com.ethink.framework.common.web.BaseController;
import com.ethink.framework.common.web.response.CommonResponse;
import com.ethink.system.api.info.SystemAppInfo;
import com.ethink.system.api.SystemAppFacade;

/**
 * 系统APP表 Controller
 *
 * @author default
 * @date 2022-09-26
 */
@Tag(name = "SystemAppController", description = "系统APP表 Controller")
@RestController
@Slf4j
@RequestMapping("platform-server/v1/system-service")
public class SystemAppController extends BaseController {

    @Autowired
    private SystemAppFacade systemAppFacade;

    @Operation(summary = "查询所有")
    @GetMapping("/systemApp/list")
    public CommonResponse<List<SystemAppInfo>> getSystemAppList() {
        return succeedWith(systemAppFacade.getSystemAppList());
    }

}